/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.myapp.dao;

import java.util.List;
import org.hibernate.HibernateException;

/**
 *
 * @author elio
 */
public interface DaoFacade {

    public void gravar(Object obj) throws HibernateException;

    public void alterar(Object obj) throws HibernateException;

    public void excluir(Object obj) throws HibernateException;

    public List carregarTudoOrdenado(Class clas, String ordem) throws HibernateException;

    public Object carregarUm(int id, Class clas) throws HibernateException;

    public List pesquisarPorAtributo(Class clas, String valor, String atributo, String ordem) throws HibernateException;
    
    public Integer retornarMaxId(Class clas);
}
